<center><h1>Create la clave!</h1></center>
            <div class="form">
              <!--  <form action="signup/create_member" method="post" class="niceform">-->
                <form class="niceform" id="signup_form">
                    <fieldset>

<fieldset>

        <legend>Informacion Personal</legend>
    <?php

    //echo form_open('login/create_member');
   // echo form_input('carnet',set_value('carnet','Carnet'));

    echo form_input('nombre', set_value('nombre', 'Nombre'));
    echo form_input('apellido', set_value('apellido', 'Apellido'));
    //echo form_input('email_address', set_value('email_address', 'Email Address'));
    ?>

</fieldset>

<fieldset>

    <legend>Informacion Login </legend>
    <?php
    echo form_input('loginn', set_value('loginn', 'Loginn'));
    echo form_input('password', set_value('password', 'Password'));
    echo form_input('password2', 'Password Confirm');

   //echo form_submit('submit', 'Crear');
   // echo form_submit('submit', 'Eliminar');
    ?>

    <?php echo validation_errors('<p class="error">'); ?>
    <dl>
        <dt><label for="cmb_cod_emp">Codigo Empleado</label></dt>
        <!-- <dd><input type="text" name="precio" id="txt_precio" size="54" /></dd>-->
    </dl>
    <select size="1" name="carnet" id="cmb_cod_emp">
        <?php
        $arr = array(1, 2, 3, 4);
        //  foreach ($codigo as &$value) {
        foreach ($carnet as &$value) {
            ?>
            <option value=<?php echo $value['carnet'];?>><?php echo $value['carnet'];?></option>
        <?php
        }

        unset($value); // break the reference with the last element
        ?>

    </select>
</fieldset>

                        <dl class="submit">
                            <input type="submit" name="Crear" id="Crear" value="Crear" />
                            <input type="reset" name="cancelar" id="cancelar" value="Canecalr" />

                        </dl>
                    </fieldset>

                </form>
            </div>
        </div><!-- end of right content-->


    </div>   <!--end of center content -->

            <div class="clear"></div>
</div>

<script>
    $(document).ready(function () {
        $('#Crear').click(function () {
            $.post('login/create_member',$( "#signup_form" ).serialize(),function(data){
                $( ".right_content" ).empty();
                $( ".right_content" ).append( data );
            });
            return false;
        });
    });

</script>
